package pref.junx.flybird.fragment.daily.event;


import java.util.List;

import pref.junx.flybird.base.BaseModel;
import pref.junx.flybird.base.BasePresenter;
import pref.junx.flybird.base.Baseview;
import pref.junx.flybird.entity.Bean;
import pref.junx.flybird.entity.DailyBean;
import pref.junx.flybird.entity.Daily_result;
import pref.junx.flybird.entity.Event;
import pref.junx.flybird.entity.ResultBean;
import rx.Observable;

/**
 * Created by acer on 2017/8/4.
 */

public interface DailyContract {
    interface Modle extends BaseModel {
        Observable<Daily_result> doUpto(Bean<DailyBean> beanBean);

        Observable<ResultBean<List<Event>>>getEvents(int string);
    }

    interface View extends Baseview {
        void reportsuccess(String a, int b);

        void reportfail(String a);

        void itmeSelect(String i, String n);


        void setEvents(List<Event> data);
    }

    abstract class Presenter extends BasePresenter<Modle, View> {

        public abstract void getEvent(int string);
    }
}
